unit FConfig_Extra;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, Buttons, ExtCtrls, Mask, DBCtrls, DB;

type
  TFormConfig_Extra = class(TForm)
    Label1: TLabel;
    Panel1: TPanel;
    Panel2: TPanel;
    BtnAceptar: TSpeedButton;
    BtnCancelar: TSpeedButton;
    dsConfig: TDataSource;
    Label2: TLabel;
    DBEdit1: TDBEdit;
    Label3: TLabel;
    DBEdit2: TDBEdit;
    Label4: TLabel;
    DBEdit3: TDBEdit;
    Label5: TLabel;
    Label6: TLabel;
    Label7: TLabel;
    DBEdit4: TDBEdit;
    Label8: TLabel;
    DBEdit5: TDBEdit;
    Label9: TLabel;
    DBEdit6: TDBEdit;
    procedure BtnAceptarClick(Sender: TObject);
    procedure BtnCancelarClick(Sender: TObject);
    procedure FormShow(Sender: TObject);
    procedure DBEdit1KeyPress(Sender: TObject; var Key: Char);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  FormConfig_Extra: TFormConfig_Extra;

implementation

uses
  ModDatos;

{$R *.dfm}

procedure TFormConfig_Extra.BtnAceptarClick(Sender: TObject);
begin
  md.tConfig.CheckBrowseMode;
  md.tConfig.Close;
  Close;
end;

procedure TFormConfig_Extra.BtnCancelarClick(Sender: TObject);
begin
  md.tConfig.Cancel;
  md.tConfig.Close;
  Close;
end;

procedure TFormConfig_Extra.FormShow(Sender: TObject);
begin
  md.tConfig.Open
end;

procedure TFormConfig_Extra.DBEdit1KeyPress(Sender: TObject;
  var Key: Char);
begin
  if Key = '.' then Key := ','
end;

end.
